<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "contact_project".
 *
 * @property int $id
 * @property int $contactId
 * @property int $projectId
 * @property string|null $createdAt
 * @property string|null $updatedAt
 */
class ContactProject extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'contact_project';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['contactId', 'projectId'], 'required'],
            [['contactId', 'projectId'], 'integer'],
            [['createdAt', 'updatedAt'], 'safe'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'contactId' => 'Contact ID',
            'projectId' => 'Project ID',
            'createdAt' => 'Created At',
            'updatedAt' => 'Updated At',
        ];
    }
}
